from enum import IntEnum

class VolType(IntEnum):
    INSIDE = 1
    OUTSIDE = 2
    LARGE = 3

class Categ(IntEnum):
    NONE = 1
    STUDENT = 2
    TEACHER = 4
    CLASS = 8
    MANAGER = 16
    AUDITOR = 32
    SYSTEM = 64

    def authorized(self, categ):
        return (self | Categ.SYSTEM) & categ